<?php
namespace app\process;

use app\services\ExampleService;
use support\Log;
use Workerman\Crontab\Crontab;

class CrontabFifteenProcess
{
    public function onWorkerStart()
    {
        // 每分钟执行一次
        new Crontab('0 1 * * * *', function(){
            try{
                ExampleService::fifteen() ;
            }catch(\Exception $e){
                Log::error(__METHOD__, []) ;
            }
        });
    }
}